package com.peng.service;

import com.peng.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService{
    @Autowired
    DeptService deptService;

    @Override
    public boolean addDept(Dept dept) {
        return deptService.addDept(dept);
    }

    @Override
    public Dept queryId(long id) {
        return deptService.queryId(id);
    }

    @Override
    public List<Dept> queryList() {
        return deptService.queryList();
    }
}
